<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('Businessset/sysset_list')}">保价加急设置</a></li>
    </ul>
    <form id="myform1"  method="post" class="form-horizontal js-ajax-form" action="{:U('Businessset/sysset_update')}"  method="post">
        <fieldset>

            <h4 style="color: #f50">保险金额配置</h4>
            <input type="button"  class="btn btn-primary" value="增加" id="addTable1" onClick="addDiv(1);" />
            <input type="hidden" name="set_id" value="1">
            <div id="div_1">
                <input type="hidden" name="" value="">
            <foreach name="data_1" item="vo" key="k">
                <div >
                    第 {$k+1} 项:&nbsp;&nbsp;<input type="text" name="text1[]"  value="{$vo.text}">元
                </div>
            </foreach>
            </div>
            <if condition="$data_1==null">
                <div>
                    增 1 项:&nbsp;&nbsp;<input type=\"text\" name=\"text{$count}[]\" >元
                </div>
            </if>
            </fieldset>
        <div class="form-actions">
            <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
        </div>
        </form>
    <form  id="myform2"  method="post" class="form-horizontal js-ajax-form" action="{:U('Businessset/sysset_update')}"  method="post">
    <h4 style="color: #f50">加急金额配置</h4>
        <fieldset>
            <input type="button"  class="btn btn-primary" value="增加" id="addTable2" onClick="addDiv(2);" />
            <input type="hidden" name="set_id" value="2">
            <div id="div_2">
                <foreach name="data_2" item="vo" key="k">
                    <div >
                        第 {$k+1} 项:&nbsp;&nbsp;<input type="text" name="text2[]" required value="{$vo.text}">元
                    </div>
                </foreach>
                </div>
        <if condition="$data_2==null">
            <div>
                增 1 项:&nbsp;&nbsp;<input type=\"text\" name=\"text{$count}[]\" >
            </div>
        </if>
        </fieldset>
        <div class="form-actions">
            <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
        </div>
    </form>
    <!--<form  id="myform3"  method="post" class="form-horizontal js-ajax-form" action="{:U('Businessset/sysset_update')}"  method="post">-->
        <!--<h4 style="color: #f50">排队类型配置</h4>-->
        <!--<fieldset>-->
        <!--<input type="button"  class="btn btn-primary" value="增加" id="addTable3" onClick="addDiv(3);" />-->
            <!--<input type="hidden" name="set_id" value="3">-->
        <!--<div id="div_3">-->
            <!--<foreach name="data_3" item="vo" key="k">-->
                <!--<div >-->
                    <!--第 {$k+1} 项:&nbsp;&nbsp;<input type="text" name="text3[]" required value="{$vo.text}">-->
                <!--</div>-->
            <!--</foreach>-->
        <!--</div>-->
        <!--</fieldset>-->
        <!--<if condition="$data_3==null">-->
            <!--<div>-->
            <!--增 1 项:&nbsp;&nbsp;<input type=\"text\" name=\"text{$count}[]\" >-->
            <!--</div>-->
        <!--</if>-->
        <!--<div class="form-actions">-->
            <!--<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>-->
        <!--</div>-->
    <!--</form>-->
    <form  id="myform4"  method="post" class="form-horizontal js-ajax-form" action="{:U('Businessset/sysset_update')}"  method="post">
        <h4 style="color: #f50">排队时间配置</h4>
        <fieldset>
        <input type="button"  class="btn btn-primary" value="增加" id="addTable4" onClick="addDiv(4);" />
        <input type="hidden" name="set_id" value="4">
        <div id="div_4">
            <foreach name="data_4" item="vo" key="k">
                <div >
                    第 {$k+1} 项:&nbsp;&nbsp;<input type="text" name="text4[]" required value="{$vo.text}">
                </div>
            </foreach>
        </div>
        <if condition="$data_4==null">
            <div>
                增 1 项:&nbsp;&nbsp;<input type=\"text\" name=\"text{$count}[]\" >
            </div>
        </if>
        </fieldset>
        <div class="form-actions">
            <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
        </div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>

        function addDiv($count){
            var div=" <div>"+
                        "增 1 项:&nbsp;&nbsp;<input type=\"text\" name=\"text"+$count+"[]\" >"+
                        " </div>";
            var divchild = '#div_'+$count;
            $(divchild).append(div);
        };

</script>

</body>
</html>